﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;

namespace AUV5.Model
{
    /// <summary>
    /// 功能：     实体类 OrderItem (订单项，每个订单项只能对应一项服务) 
    /// 作者：     lwl
    /// 日期：     2011/10/13
    /// 修改日期： 
    /// 修改人：
    /// 修改内容：
    /// </summary>
    [Serializable]
    public class OrderItem
    {
        public OrderItem()
        {

        }

        #region Model

        private string _orderitemid;
        private string _serviceid;
        private string _orderid;
        private decimal _price;

        
        private int _quantity;
        private int _isdel;
        private int _state;
        private DateTime _createdate = DateTime.Parse("1900-1-1");
        private DateTime _updatedate = DateTime.Parse("1900-1-1");
        private DateTime _begindate = DateTime.Parse("1900-1-1");
        private DateTime _enddate = DateTime.Parse("1900-1-1");

        /// <summary>
        /// 编号  
        /// </summary>
        public string OrderItemID
        {
            get { return _orderitemid; }
            set { _orderitemid = value; }
        }
        /// <summary>
        /// 服务ID
        /// </summary>
        public string ServiceID
        {
            get { return _serviceid; }
            set { _serviceid = value; }
        }
        /// <summary>
        /// 增值服务ID（如果该项不为空，则订单项为增值服务）
        /// </summary>
        public string ExtraID { get; set; }
        /// <summary>
        /// 订单ID
        /// </summary>
        public string OrderID
        {
            get { return _orderid; }
            set { _orderid = value; }
        }
        /// <summary>
        /// 订单项价格
        /// </summary>
        public decimal Price
        {
            get { return _price; }
            set { _price = value; }
        }

        /// <summary>
        /// 数量 
        /// </summary>
        public int Quantity
        {
            get { return _quantity; }
            set { _quantity = value; }
        }
        /// <summary>
        /// 是否删除
        /// </summary>
        public int IsDel
        {
            get { return _isdel; }
            set { _isdel = value; }
        }
        /// <summary>
        /// 是否可用
        /// </summary>
        public int State
        {
            get { return _state; }
            set { _state = value; }
        }
        /// <summary>
        /// 添加时间 
        /// </summary>
        public DateTime CreateDate
        {
            get { return _createdate; }
            set { _createdate = value; }
        }
        /// <summary>
        /// 更新时间 
        /// </summary>
        public DateTime UpdateDate
        {
            get { return _updatedate; }
            set { _updatedate = value; }
        }
        /// <summary>
        /// 开始时间 
        /// </summary>
        public DateTime BeginDate
        {
            get { return _begindate; }
            set { _begindate = value; }
        }
        /// <summary>
        /// 结束时间 
        /// </summary>
        public DateTime EndDate
        {
            get { return _enddate; }
            set { _enddate = value; }
        }
        /// <summary>
        /// 订单项所属订单的状态 
        /// </summary>
        public int OrderStatus { get; set; }
        #endregion Model
    }
}
